<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
	<title>CMS</title>
	
	<link type="text/css" rel="stylesheet" href="<?php echo static_url("style/reset.css"); ?>"/>
    <link type="text/css" rel="stylesheet" href="<?php echo static_url("style/style.css"); ?>"/>
    
    <link type="text/css" rel="stylesheet" href="<?php echo static_url("style/colorbox.css"); ?>"/>
    <link type="text/css" rel="stylesheet" href="<?php echo static_url("style/colorbox-custom.css"); ?>"/>
    
	<!--[if IE 6]>
	<link rel="stylesheet" href="<?php echo static_url("style/ie.css"); ?>" type="text/css" />
	<![endif]-->
	<!--[if IE]>
	<link rel="stylesheet" href="<?php echo static_url("style/colorbox-custom-ie.css"); ?>" type="text/css" media="screen" />
	<![endif]-->
	
	
	<script type="text/javascript" src="<?php echo static_url("javascript/jquery-1.3.2.min.js"); ?>"></script>
	<script type="text/javascript" src="<?php echo static_url("javascript/jquery.colorbox-min.js"); ?>"></script>
	<script type="text/javascript" src="<?php echo static_url("javascript/jquery.ui.js"); ?>"></script>
	<script type="text/javascript" src="<?php echo static_url("javascript/jquery.corners.min.js"); ?>"></script>
	<script type="text/javascript" src="<?php echo static_url("javascript/bg.pos.js"); ?>"></script>
	<script type="text/javascript" src="<?php echo static_url("javascript/tabs.pack.js"); ?>"></script>
	<script type="text/javascript" src="<?php echo static_url("javascript/cleanity.js"); ?>"></script>
	<script type="text/javascript" src="<?php echo static_url("javascript/functions.js"); ?>"></script>
	
</head>


<body>
	<div id="container">
	
	<div id="header">
		<div id="top">
			<h1><a href="#">CMS</a></h1>
		      
			<p id="userbox">Hello <strong><?php echo $user['name']; ?></strong>  |  <a href="#">Settings</a>  |  <a href="<?php echo site_url("admin/logout"); ?>">Logout</a> <br/>
			<small>Last Login: 12 May 2009</small></p>
			<span class="clearFix"></span>
		</div>
		
		<?php $this->load->view($template_path ."commons/menu-top");?>
		
		<!-- 
 		<form id="form1" name="form1" method="get" action="">
		<fieldset>
			<legend>Search</legend> 
			<label id="searchbox"><input type="text" id="s" name="s" /></label> 
			<input type="submit" value="Search" name="Submit" class="hidden" />
		</fieldset>
		</form>
		 -->
		<span class="clearFix"> </span>
	</div><!-- end of #header -->
	
	
	<div id="content">
		<?php $this->load->view($template_path ."commons/notifications");?>
		
		<?php $this->load->view($template_path ."pages/" . $page);?>	
	</div>
	
	
	</div><!-- end of #CONTAINER -->
	
</body>

</html>